package com.hanggold.jfinal.springframework.processors;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.SmartLifecycle;
import org.springframework.stereotype.Component;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-10-17 14:16
 * @since 1.0.0
 **/
@Component
public class MyLifecyleDemo implements InitializingBean, SmartLifecycle {
    @Override
    public void afterPropertiesSet() throws Exception {

        System.out.println("执行my： afterProperties");
    }

    @Override
    public void start() {
        System.out.println("执行my： start");
    }

    @Override
    public void stop() {
        System.out.println("执行my： start");
    }

    @Override
    public boolean isRunning() {
        System.out.println("执行my： isrung");
        return false;
    }
}
